{if $smarty.get.pageNum neq null}
{assign var="p" value=$smarty.get.pageNum-1}
	{gallery action=GETALLGALS varname="gals" start=$p*15 count=15}
{else}
{assign var="p" value=0}
	{gallery action=GETALLGALS varname="gals" start=0 count=15}
{/if}
{gallery action=GETGALSCNT varname="cnt"}
Всего галерей: {$cnt}<br>
{pager urlVar="pageNum" perPage="15" totalItems=$cnt varname="pager"}
<div align="center">{$pager[0].all}</div>
<form action="index.php?module=gallery" name="main" method="post">
<table border="0" class="rows"  cellpadding="1" cellspacing="1">
<tr>
<th><input type="checkbox" type="checkbox" onclick="SelectAll(checked)"></th>
<th>#</th>
<th>Название</th>
<th>Описание</th>
</tr>

{section name=acmp loop=$gals}
<tr class="{if ($smarty.section.acmp.index is not odd) }oddRow{else}evenRow{/if}">
<td><input type="radio" name="id" value="{$gals[acmp].id}"></td>
<td>{$smarty.section.acmp.index+$p*15+1}</td>
<td>{$gals[acmp].name}</td>
<td>{$gals[acmp].shortDescription}</td>
</tr>
{/section}
</table>
<div align="center">{$pager[0].all}</div>
Всего галерей: {$cnt}<br>
</form>
{literal}
<script>
if (window.opener!=null)
{
	window.opener.PageLoaded(window,'gallery');
}
</script>
{/literal}